#ifndef DATABASE_H
#define DATABASE_H

#include <string>
#include "Word.h"
#include "FeatureFunctions.h"

using namespace std;


struct Match{
  string text;
  double score;
};

class Database
{
  private:
    vector<pair <string, Descriptors> > d_prototypes;
    
  public:
    Database();
    Database(string filename);
    ~Database();
    void initialize();


    
    void addPrototype(string target, Descriptors feature);

    vector<Match> getBestMatches(Descriptors features);


    void saveDatabase(string filename);
    void addDatabaseFile(string filename);

    void printData();
};

#endif
